﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BEB RID: 3051
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonsterList : IMessage<MonsterList>, IMessage, IEquatable<MonsterList>, IDeepCloneable<MonsterList>, IBufferMessage
	{
		// Token: 0x1700267E RID: 9854
		// (get) Token: 0x06008890 RID: 34960 RVA: 0x0016B57C File Offset: 0x0016977C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonsterList> Parser
		{
			get
			{
				return MonsterList._parser;
			}
		}

		// Token: 0x1700267F RID: 9855
		// (get) Token: 0x06008891 RID: 34961 RVA: 0x0016B583 File Offset: 0x00169783
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonsterListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002680 RID: 9856
		// (get) Token: 0x06008892 RID: 34962 RVA: 0x0016B595 File Offset: 0x00169795
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonsterList.Descriptor;
			}
		}

		// Token: 0x06008893 RID: 34963 RVA: 0x0016B59C File Offset: 0x0016979C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonsterList()
		{
		}

		// Token: 0x06008894 RID: 34964 RVA: 0x0016B5A4 File Offset: 0x001697A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonsterList(MonsterList other) : this()
		{
			this.num_ = other.num_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008895 RID: 34965 RVA: 0x0016B5D5 File Offset: 0x001697D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonsterList Clone()
		{
			return new MonsterList(this);
		}

		// Token: 0x17002681 RID: 9857
		// (get) Token: 0x06008896 RID: 34966 RVA: 0x0016B5DD File Offset: 0x001697DD
		// (set) Token: 0x06008897 RID: 34967 RVA: 0x0016B5E5 File Offset: 0x001697E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Num
		{
			get
			{
				return this.num_;
			}
			set
			{
				this.num_ = value;
			}
		}

		// Token: 0x17002682 RID: 9858
		// (get) Token: 0x06008898 RID: 34968 RVA: 0x0016B5EE File Offset: 0x001697EE
		// (set) Token: 0x06008899 RID: 34969 RVA: 0x0016B5F6 File Offset: 0x001697F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x0600889A RID: 34970 RVA: 0x0016B5FF File Offset: 0x001697FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonsterList);
		}

		// Token: 0x0600889B RID: 34971 RVA: 0x0016B60D File Offset: 0x0016980D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonsterList other)
		{
			return other != null && (other == this || (this.Num == other.Num && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600889C RID: 34972 RVA: 0x0016B64C File Offset: 0x0016984C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Num != 0U)
			{
				num ^= this.Num.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600889D RID: 34973 RVA: 0x0016B6A4 File Offset: 0x001698A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600889E RID: 34974 RVA: 0x0016B6AC File Offset: 0x001698AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600889F RID: 34975 RVA: 0x0016B6B8 File Offset: 0x001698B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Num != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Num);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060088A0 RID: 34976 RVA: 0x0016B714 File Offset: 0x00169914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Num != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Num);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060088A1 RID: 34977 RVA: 0x0016B76C File Offset: 0x0016996C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonsterList other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Num != 0U)
			{
				this.Num = other.Num;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060088A2 RID: 34978 RVA: 0x0016B7BC File Offset: 0x001699BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060088A3 RID: 34979 RVA: 0x0016B7C8 File Offset: 0x001699C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.Num = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400341C RID: 13340
		private static readonly MessageParser<MonsterList> _parser = new MessageParser<MonsterList>(() => new MonsterList());

		// Token: 0x0400341D RID: 13341
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400341E RID: 13342
		public const int NumFieldNumber = 4;

		// Token: 0x0400341F RID: 13343
		private uint num_;

		// Token: 0x04003420 RID: 13344
		public const int MonsterIdFieldNumber = 5;

		// Token: 0x04003421 RID: 13345
		private uint monsterId_;
	}
}
